import axios from 'axios';

export function querySettlementList(param?: any) {
  return axios.post('/admin/settlement', param);
}

export function querySettlementDetail(param?: { id: number }) {
  return axios.post('/admin/settlement/detail', param);
}

export function createSettlement(param?: any) {
  return axios.post('/admin/settlement/create', param);
}

export function updateSettlement(param?: any) {
  return axios.post('/admin/settlement/update', param);
}



export function deleteSettlement(param: { id?: number }) {
  return axios.post('/admin/settlement/delete', param);
}

export function querySettlementCustomerList(param?: any) {
  return axios.post('/admin/settlement-customer', param);
}

export function createSettlementCustomer(param?: any) {
  return axios.post('/admin/settlement-customer/create', param);
}

export function updateSettlementCustomer(param?: any) {
  return axios.post('/admin/settlement-customer/update', param);
}

export function updateSettlementCustomers(param?: any) {
  return axios.post('/admin/settlement-customer/batchUpdate', param);
}

export function deleteSettlementCustomer(param: { id?: number }) {
  return axios.post('/admin/settlement-customer/delete', param);
}


